{extend name="layout" /}
{block name="css"}
<link rel="stylesheet" href="{$statics}plugins/select2/select2.css">
<link href="{$statics}plugins/um/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
<link href="{$statics}plugins/um/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
{/block}
{block name="script"}
<script type="text/javascript" src="{$statics}plugins/um/third-party/template.min.js"></script>
<script type="text/javascript" charset="utf-8" src="{$statics}plugins/um/umeditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="{$statics}plugins/um/umeditor.min.js"></script>
<script type="text/javascript">
    var um = UM.getEditor('myEditor', {
        initialFrameWidth: null
    });
</script>
<script languange="Javascript">
    layui.use('element');
</script>
{/block}
{block name="content"}
<section class="content" style="padding-top:0px;">
    <div class="row">
        <div class="box">
            <form role="form" id="introform" action="{:url('save_intro')}">
                <div class="box-body">
                    <div class="form-group">
                        <label>文章内容</label>
                        <textarea id="myEditor" name="content" style="width:100%;height:500px;">{$info.content}</textarea>
                    </div>
                </div>
                <input type="hidden" value="{$info.id}" name="id">
            </form>
        </div>
    </div>
</section>
<!-- </div>-->
<div class="box-footer">
    <button type="button" class="btn btn-block btn-success cocoAjaxForm" formid="introform">保存</button>
</div>
<!-- </div> -->
<!-- </section> -->
{/block}